package pvz;

import java.awt.image.BufferedImage;

//超类
public abstract class PlantObiect {
    private static final int LIVE=0;//活着的
    public static final int DEAD = 1;//死了的
    public static final int REMOVE = 2;//删除的
    protected int state = LIVE;//当前状态（默认为活着的）
    protected int width;
    protected int height;
    protected int life;
    public PlantObiect(int width, int height,int life){
        this.width = width;
        this.height = height;
        this.life = life;

    }
    //移动
    public abstract void step();




}
